package mail.util;

/**
 * @Author: Hanjiafeng
 * @Date: 2019-1-25 10:33:22
 * @Desc: 处理字符和字符串
 */
public class CharTransfer {

    public static int hash(String qrsig) {
        int e = 0;
        for (int i = 0, n = qrsig.length(); n > i; ++i) {
            e += (e << 5) + qrsig.charAt(i);
        }
        return 2147483647 & e;
    }
}
